package org.sample.dining;

/**
 * Created by alan on 2017/7/12.
 */
public abstract class AbstractChopstick {

    protected boolean available;

    protected int index;

    public AbstractChopstick(int index) {
        this.available = true;
        this.index = index;
    }

    public abstract boolean take();

    public abstract void drop();

    public int getIndex() {
        return index;
    }

}